<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('aq_tools', function (Blueprint $table) {
            $table->comment('集成工具');
            $table->increments('id');
            $table->string('title')->default('')->comment('工具名称');
            $table->string('name')->default('')->comment('显示名称');
            $table->integer('custom_order')->default(new \Illuminate\Database\Query\Expression('0'))->comment('排序');
            $table->text('prompt')->comment('人设描述');
            $table->text('output_text')->comment('输出格式');
            $table->json('form_rule')->comment('表单');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('aq_tools');
    }
};
